package cn.objectspace.webssh.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;

@Controller
public class RouterController {
    @Value("${ws.uri}")
    String uri;
    @RequestMapping("/websshpage")
    public String websshpage(){
        return "webssh";
    }

    @RequestMapping("/login")
    public String client(Model model){
        model.addAttribute("ws_uri",uri);
        return "login";
    }

    @RequestMapping("/sftp")
    public String sftp(){
        return "sftp";
    }
}
